import 'package:flutter_syt/starter/app_context.dart';
import 'package:flutter_syt/starter/processor.dart';

import 'mmkv_storage.dart';

class StorageInit {
  // do nothing
}

class KVStorageProcessor with Processor<StorageInit> {
  @override
  Future<void> postProcessor(AppContext appContext, [dynamic param]) async {
    var storage = await MMKVStorage.initialize();
    appContext.storage = storage;
    return Future.value();
  }
}
